

/**
 *
 * @author aluno
 */
public class Main {
    
    public static void main(String []args){
        Servidor s = new Servidor();
        HomeBroker h1 = new HomeBroker("HomeBroker1");
        HomeBrokerGUI h2 = new HomeBrokerGUI("HomeBroker2");
        HomeBroker h3 = new HomeBroker("HomeBroker3");
        s.agregar(h1);
        s.agregar(h2);
        s.agregar(h3);
        Acao a1 = new Acao("Petrobras", 20.54);
        Acao a2 = new Acao("Vale", 30.01);
        Acao a3 = new Acao("OCX", 47.59);
        s.addAcao(a1);
        s.addAcao(a2);
        s.addAcao(a3);
        a1.setPreco(21.54);
        s.alteraAcao(a1);
        a2.setPreco(29.01);
        s.alteraAcao(a2);
    }
    
}
